﻿//*** Guidance generated code ***//
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;

using ProjectBase.Core;

namespace ProjectBase.Mvc
{
    /// <summary>html &lt;TEXTAREA&gt; element</summary>
    public class Textarea : ContentControl<ICoreModel, IVisualControl, Textarea>
    {
        #region constructor
        public Textarea(string cssClassName = null)
            : base(cssClassName) { }
        #endregion constructor

        #region Set
        public virtual Textarea SetName(string name)
        {
            Name = name;
            return this;
        }

        public virtual Textarea SetColCount(string colCount)
        {
            ColCount = colCount;
            return this;
        }

        public virtual Textarea SetRowCount(string rowCount)
        {
            RowCount = rowCount;
            return this;
        }
        #endregion Set

        #region properties
        protected override string TagName
        {
            get { return Tag.Textarea; }
        }

        public virtual string Name
        {
            get { return GetAttribute(Attr.Name); }
            set { SetAttribute(Attr.Name, value); }
        }

        public virtual string ColCount
        {
            get { return GetAttribute(Attr.ColCount); }
            set { SetAttribute(Attr.ColCount, value); }
        }

        public virtual string RowCount
        {
            get { return GetAttribute(Attr.RowCount); }
            set { SetAttribute(Attr.RowCount, value); }
        }
        #endregion properties
    }
}